<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>极客协会员工信息管理系统</title>
    <link rel="stylesheet" href="styles.css">
</head>
<body>
<!-- 导航栏 -->
<jsp:include page="head.jsp" />
<main>
    <h2>查询员工信息</h2>
    <%
        if (request.getAttribute("employee") == null) {
    %>
        <h3>暂无员工信息！</h3>
    <%
        }else {
      %>
        <form >
        <h3>员工信息：</h3>
        员工编号：<input type="text" name="id" value=${employee.getEmpID()} readonly><br><br>
        员工姓名：<input type="text" name="name" value=${employee.getEmpName()} readonly><br><br>
        性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别：<input type="text" name="gender" value=${employee.getEmpGender()} readonly><br><br>
        年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;龄：<input type="text" name="age" value=${employee.getEmpAge()} readonly><br><br>
        部&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;门：<input type="text" name="department" value=${employee.getEmpDepartment()} readonly><br><br>
        职&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;位：<input type="text" name="position" value=${employee.getEmpPosition()} readonly><br><br>
        入职日期：<input type="text" name="hiredate" value=${employee.getEmpHireDate()} readonly><br><br>
        工&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;资：<input type="text" name="salary" value=${employee.getEmpSalary()} readonly><br><br>
        <input type="button" value="返 回" onclick="history.go(-1)"  style="width: 240px; height: 50px; padding: 10px; background-color: #4CAF50; color: white; border: none; border-radius: 10px; cursor: pointer; float：left: margin-top; margin-left: 20px;" >
        </form>
    <%
        }
    %>
        </form>

</main>
<!-- 登录信息 -->
<jsp:include page="foot.jsp" />
</body>
</html>